<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本和字体相关</title>
    <style>
        div{
            width: 200px;
            height: 50px;
            border: 1px dashed pink;
            /*水平对齐方式*/
            text-align: center;
            /*text-align: right;*/
            /*行高,通过行高来控制垂直居中(行高和盒子高度一样时)*/
            line-height: 50px;
            /*文本修饰 overline上划线   underline下划线    line-through删除线   none去掉文本修饰*/
            /*text-decoration: overline;*/
            /*text-decoration: underline;*/
            text-decoration: line-through;
            /*文本阴影:颜色  x偏移值  y偏移值  浓度*/
            text-shadow: red 1px 1px 1px;
            /*字体大小*/
            font-size: 25px;
            /*设置字体*/
            font-family: cursive;
            /*字体加粗*/
            font-weight: 400;
        }
        a{
            text-decoration: none;/*去掉自带的下划线*/
            font-family: cursive;
        }
        h3{
            font-weight: 400;/*去掉自带加粗*/
            /*设置斜体*/
            font-style: italic;
            font: 30px cursive;
        }
    </style>
</head>
<body>
    <h3>东方精工</h3>
<div>文本和字体测试</div>
<a href="#">超链接</a>
</body>
</html>